#define  _CRT_SECURE_NO_WARNINGS
#include "Stack.h"

int main()
{
	StackNode* top = NULL;
	Push(&top, 1);
	Push(&top, 2);
	Push(&top, 3);
	Push(&top, 4);

	while (!IsEmpty(&top))
	{
		printf("%d ", GetTop(&top));
		Pop(&top);
	}

	Destroy(&top);
}

